package com.ts.api.module.match.plan.internal.selection.context;

import com.ts.api.module.match.core.MatchRegisterContext;
import com.ts.api.module.match.plan.internal.selection.strategy.ApiPriceSelection;
import com.ts.api.module.match.plan.internal.selection.strategy.ApiWeightSelection;
import com.ts.api.module.match.plan.internal.selection.strategy.ChannelPriceSelection;
import com.ts.api.module.match.plan.internal.selection.strategy.ChannelWeightSelection;
import com.ts.api.module.match.plan.internal.selection.strategy.PlanSelection;
import org.springframework.stereotype.Component;

/**
 *  计划选择器上下文-匹配结果后
 *
 *  @author Pan
 */
@Component
public class PostPlanSelectionContext extends MatchRegisterContext<PostPlanSelectionType, PlanSelection> {

    public PostPlanSelectionContext() {
        super(PostPlanSelectionType.class);
        //  自有渠道
        register(PostPlanSelectionType.CHANNEL_PRICE, ChannelPriceSelection.class);
        register(PostPlanSelectionType.CHANNEL_WEIGHT, ChannelWeightSelection.class);

        //  API渠道
        register(PostPlanSelectionType.API_PRICE, ApiPriceSelection.class);
        register(PostPlanSelectionType.API_WEIGHT, ApiWeightSelection.class);
    }

}
